package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.CyTypeMapper;
import com.zch.dao.model.CyType;
import com.zch.dao.model.CyTypeExample;
import com.zch.daoEx.CyTypeMapperEx;
import com.zch.daoEx.model.CyTypeEx;

@Service
public class CyTypeService {
	@Autowired
	private CyTypeMapper cyTypeMapper;
	@Autowired
    private CyTypeMapperEx cyTypeMapperEx;

	public int countByExample(CyTypeExample example) {
		return this.cyTypeMapper.countByExample(example);
	}

	public CyType selectByPrimaryKey(String id) {
		return this.cyTypeMapper.selectByPrimaryKey(id);
	}

	public List<CyType> selectByExample(CyTypeExample example) {
		return this.cyTypeMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.cyTypeMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(CyType record) {
		return this.cyTypeMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(CyType record) {
		return this.cyTypeMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(CyTypeExample example) {
		return this.cyTypeMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(CyType record, CyTypeExample example) {
		return this.cyTypeMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(CyType record, CyTypeExample example) {
		return this.cyTypeMapper.updateByExample(record, example);
	}

	public int insert(CyType record) {
		return this.cyTypeMapper.insert(record);
	}

	public int insertSelective(CyType record) {
		return this.cyTypeMapper.insertSelective(record);
	}

    public List<CyTypeEx> selectAppList() {
        return this.cyTypeMapperEx.selectAppList();
    }
    
    public List<CyTypeEx> selectList(Map<String, Object> map) {
        return this.cyTypeMapperEx.selectList(map);
    }  

}
